<template>
  <div class="home_swiper">
    <Swiper v-if="banner.length > 1">
      <SwiperItem v-for="(item, index) of banner" :key="index">
        <a :href="item.link"><img :src="item.image" alt="" /></a>
      </SwiperItem>
    </Swiper>
  </div>
</template>

<script>
import { Swiper, SwiperItem } from '@/components/common/Swiper'

export default {
  name: 'HomeSwiper',
  components: {
    Swiper,
    SwiperItem
  },
  props: {
    banner: {
      type: Array,
      default () {
        return []
      }
    }
  }
}
</script>

<style lang="scss" scoped>
</style>
